﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Smart.Service;

namespace Smart.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“HttpService”。
    public class HttpService : ServiceBase, IHttpService
    {
        public string Execute(string action, string request)
        {
            return ExecuteMethod(action, null, null, request);
        }

        public string ExecuteMethod(string action, string parser, string method, string request)
        {
            return InnerExecute(action, parser ?? "defaultServiceParser", method ?? "DefaultExecute", request);
        }
    }
}
